import request from '@/utils/request'

// 查询重调度方案列表
export function listReschedulinggantt(query) {
  return request({
    url: '/rescheduling/reschedulinggantt/list',
    method: 'get',
    params: query
  })
}

// 查询重调度方案详细
export function getReschedulinggantt(waferlotid) {
  return request({
    url: '/rescheduling/reschedulinggantt/' + waferlotid,
    method: 'get'
  })
}

// 新增重调度方案
export function addReschedulinggantt(data) {
  return request({
    url: '/rescheduling/reschedulinggantt',
    method: 'post',
    data: data
  })
}

// 修改重调度方案
export function updateReschedulinggantt(data) {
  return request({
    url: '/rescheduling/reschedulinggantt',
    method: 'put',
    data: data
  })
}

// 删除重调度方案
export function delReschedulinggantt(waferlotid) {
  return request({
    url: '/rescheduling/reschedulinggantt/' + waferlotid,
    method: 'delete'
  })
}
